package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户收益对象 revenue_donations
 * 
 * @author shawu
 * @date 2024-08-16
 */
public class RevenueDonations extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long revenueId;

    /** 关联的用户编号
 */
    private Long userId;

    /** 广告收益 */
    @Excel(name = "广告收益")
    private Long adRevenue;

    /** 打赏金额 */
    @Excel(name = "打赏金额")
    private Long revenueDonations;

    /** 总收益 */
    @Excel(name = "总收益")
    private Long totalRevenue;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setRevenueId(Long revenueId) 
    {
        this.revenueId = revenueId;
    }

    public Long getRevenueId() 
    {
        return revenueId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAdRevenue(Long adRevenue) 
    {
        this.adRevenue = adRevenue;
    }

    public Long getAdRevenue() 
    {
        return adRevenue;
    }
    public void setRevenueDonations(Long revenueDonations) 
    {
        this.revenueDonations = revenueDonations;
    }

    public Long getRevenueDonations() 
    {
        return revenueDonations;
    }
    public void setTotalRevenue(Long totalRevenue) 
    {
        this.totalRevenue = totalRevenue;
    }

    public Long getTotalRevenue() 
    {
        return totalRevenue;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("revenueId", getRevenueId())
            .append("userId", getUserId())
            .append("adRevenue", getAdRevenue())
            .append("revenueDonations", getRevenueDonations())
            .append("totalRevenue", getTotalRevenue())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
